package emas.client;

import java.sql.Timestamp;
import java.util.ArrayList;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import emas.shared.Location;
import emas.shared.SensorData;

@RemoteServiceRelativePath("retrieveDataService")
public interface RetrieveDataService extends RemoteService {
	ArrayList<Location> getLocations();

	void addLocation(Location location);

	void removeLocation(Location location);

	void updateLocation(Location location);

	boolean authenticateUser(String username, String password);

	String getCurrentlyAuthenticatedUser();

	ArrayList<SensorData> getSensorDataForLocationIntervall(Location location,
			Timestamp fromDate, Timestamp toDate);
}
